package com.cw1.factory.factoryMethod.pizzastore.order;


import com.cw1.factory.factoryMethod.pizzastore.constant.PizzaConstant;
import com.cw1.factory.factoryMethod.pizzastore.pizza.*;

/**
 * @Author qiuMi
 * @description 披萨 - 伦敦 - 订单
 * @Date 2022-10-05 17:30
 **/
public class LdOrderPizza extends OrderPizza{
    @Override
    Pizza creatPizza(String orderType) {
        Pizza pizza = null;
        if (orderType.equals(PizzaConstant.CHESS)){
            pizza = new LdChessPizza();
        }else if (orderType.equals(PizzaConstant.PEPPER)){
            pizza = new LdPepperPizza();
        }
        return pizza;
    }
}
